package com.exttech.share.orm.hibernate3.domain;

import javax.persistence.Version;

/**
 * 需要乐观锁的抽象Domain
 * User: sidney
 * Date: 12/25/13
 * Time: 22:17
 */
public abstract class AbstractVersionDomain extends AbstractDomain{

    @Version
    private Long version;

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
}
